import request from '@/utils/request'



export function oldEquipmentList(data) { //老旧设备管理-列表
  return request({
    url: '/project-quality/api/standingBooOldEquipment/page',
    method: 'post',
    data
  })
}


export function oldEquipmentAdd(data) { //老旧设备管理-新增
  return request({
    url: '/project-quality/api/standingBooOldEquipment/add',
    method: 'post',
    data
  })
}

//原 put
export function oldEquipmentEdit(data) { //老旧设备管理-编辑
  return request({
    url: '/project-quality/api/standingBooOldEquipment/edit',
    method: 'post',
    data
  })
}

//原 del
export function oldEquipmentDelete(id) { //老旧设备管理-删除
  return request({
    url: '/project-quality/api/standingBooOldEquipment/del/' + id,
    method: 'get',
  })
}


export function oldEquipmentDetails(id) { //老旧设备管理-详情
  return request({
    url: '/project-quality/api/standingBooOldEquipment/' + id,
    method: 'get',
  })
}
export function  oldEquipmentExport(data) { //老旧设备管理-导出
  return request({
      url: '/project-quality/api/standingBooOldEquipment/export',
      responseType: 'arraybuffer',
      method: 'POST',
      data,
  })
}